<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>公告编辑</title>
    <link rel="stylesheet" type="text/css" href="../layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../css/userInfo.css">
</head>
<body>
  <div class="layui-row">
    <div class="layui-col-lg3"></div>
    <div class="layui-col-lg6">
      <div id="editor"></div>
    </div>
    <div class="layui-col-lg3"></div>
  </div>
<script type="text/javascript" src="../layui/layui.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
<script>
    const E = window.wangEditor;//引入wangEditor
    const editor = new E('#editor');//新建对象
    editor.create();//创建编辑器
</script>
</body>
</html>